package com.sp2.dev.test.listener.test;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: zhimingli
 * Date: 14-2-10
 * Time: 下午4:03
 * To change this template use File | Settings | File Templates.
 */
public class Target {
    protected List<Look> lookList = new ArrayList<Look>();

    public void add(Look look){
        System.out.println("add："+look.getName());
        lookList.add(look);
    }

    public void messgae(String name){
        for(Look look:lookList){
            if(!look.getName().equalsIgnoreCase(name)){
                look.help();
            }
        }
    }
}
